<?php
namespace app\index\controller;


use think\View;

class Index extends Base
{
    public function index()
    {
        echo $_SERVER['DOCUMENT_ROOT'];

        $view = new View([
            'type'          => 'think',
            'view_path'     => '111',
            'view_suffix'   => 'html',
            'view_depr'     => '/',
        ]);
        // 渲染模板输出 并赋值模板变量
        return $view->fetch('D:\hello',['name'=>'thinkphp']);
    }
}
